#!/usr/bin/env bash

# 1、完全删除系统中的lsof

dpkg -l|grep vino &>/dev/null
if  [ $? -ne 0 ];then
    echo true
else
    echo false
fi

# 2、docker升级
CUR_VER=`docker -v|awk '{print $3}'|tr -d ","`
CUR_STAT=`dpkg -l|grep docker|awk '{print $1}'`

if [ "$CUR_VER"  == "18.09.7" ] && [ "$CUR_STAT" == "ii" ] ;then
    echo true
else
    echo false
fi